GUI Help > Special > drawRect

drawRect
drawRect handle gadget, int left, int top, int right, int bottom

Description:
Draws a rectangle on a canvas gadget using the current drawing colour for the gadget.

Return Value:


Parameters:
gadget Handle to a canvas gadget
left The X co-ordinate of the top-left of the rectangle
top The Y co-ordinate of the top-left of the rectangle
right The X co-ordinate of the bottom-right point of the rectangle
bottom The Y co-ordinate of the bottom-right point of the rectangle.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)